import random
from flask import render_template, redirect, url_for
from . import main


@main.route('/index', methods=['GET', 'POST'])
def index():
    print('i am in')
    return render_template('index.html', tag=random.random())

@main.route('/', methods=['GET', 'POST'])
def first():
    return redirect(url_for('main.index'))